# in /slowread/slowread/blog/wagtail_hooks.py

from wagtail.admin.menu import MenuItem
from wagtail.core import hooks

@hooks.register('register_settings_menu_item')
def register_refresh_cache_menu_item():
    return MenuItem('刷新缓存', '/blog/refresh-cache', classnames='icon icon-folder-inverse', order=1)